const app = getApp()
console.log('app.globalData',app.globalData);
Component({
    properties: {
        defaultData: {
            type: Object,
            value: {
                title: "我是默认标题"
            },
            observer: function (newVal, oldVal) {}
        },
        // multiArray:Array,
        // cityName:String,
        // multiIndex:Array
    },
    data: {
        navBarHeight: 0,
        menuRight: 0,
        menuTop: 0,
        menuHeight: 0,
    },
    attached: function () {
      this.setData({
        navBarHeight: app.globalData.navBarHeight,
        menuRight: app.globalData.menuRight,
        menuTop: app.globalData.menuTop,
        menuHeight: app.globalData.menuHeight,
      })
      console.log('app.globalData.navBarHeight',app.globalData.navBarHeight);
    },
    methods: {

    }
})